package com.dcxm.stu.rowmapper

import com.dcxm.stu.bean.HomeWork
import org.springframework.jdbc.core.RowMapper
import java.sql.ResultSet

/**
 * Created by young on 2017/8/23.
 */
class HomeWorkRowMapper : RowMapper<HomeWork> {

    override fun mapRow(resultSet: ResultSet?, i: Int): HomeWork = HomeWork(
            resultSet?.getLong("id"),
            resultSet?.getString("name"),
            resultSet?.getString("content"),
            null,
            resultSet?.getString("type"))
}